package com.hyy.backend.service;

import com.hyy.backend.common.Result;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface PostService {
    Result<Map<String, Object>> getPostDetail(Integer id);
    Result<List<Map<String, Object>>> getAllPosts();
    Result<Map<String, Object>> likePost(Integer postId, Integer userId);
    Result<Map<String, Object>> favoritePost(Integer postId, Integer userId);
    Result<String> deletePostAndRelatedData(Integer postId);

}
